from dataclasses import dataclass
from typing import Any, Optional


@dataclass
class LinkedList:
    head: "Node"


@dataclass
class Node:
    value: Any
    next: Optional["Node"] = None
